package com.chenyun.common.exceptions;


import com.chenyun.common.vo.ResultCode;

public class CommonException extends Exception  {
    private ResultCode resultCode;
    public CommonException(String message) {
        super(message);
    }
    public CommonException(Throwable cause) {
        super(cause);
    }

    public CommonException(ResultCode resultCode) {
        this.resultCode = resultCode;
    }

    public ResultCode getResultCode() {
        return resultCode;
    }

    public void setResultCode(ResultCode resultCode) {
        this.resultCode = resultCode;
    }
}
